package com.tedu.lingma.agent.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tedu.lingma.agent.domain.Appointment;
import com.tedu.lingma.agent.mapper.AppointmentMapper;
import com.tedu.lingma.agent.service.AppointmentService;
import org.springframework.stereotype.Service;

@Service
public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appointment> implements AppointmentService {
    @Override
    public Appointment queryAppointment(String card) {
        LambdaQueryWrapper<Appointment> queryWrapper = new LambdaQueryWrapper();
        queryWrapper.eq(Appointment::getIdCard, card);
        Appointment appointment = super.getOne(queryWrapper);
        return appointment;
    }
}
